package com.mofang.ticketing.base.serve.mq.listener.voucher.message;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author LGC
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class VoucherCreateMessage implements Serializable {
    private static final long serialVersionUID = -1270879140086081514L;

    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "商户ID")
    private Long merchantId;

    @ApiModelProperty(value = "商户名称")
    private String merchantName;

    @ApiModelProperty(value = "渠道ID")
    private Long channelId;

    @ApiModelProperty(value = "渠道名称")
    private String channelName;

    @ApiModelProperty(value = "凭证类型 1一码一人 2一码多人")
    private Integer voucherType;

    @ApiModelProperty(value = "客户信息集合")
    private List<Customer> customerList;

    //todo ...其它字段


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Customer implements Serializable {
        private static final long serialVersionUID = -1200879140086081514L;
        @ApiModelProperty(value = "出游人ID")
        private Long customerId;
        @ApiModelProperty(value = "客户手机号")
        private String customerPhone;
        @ApiModelProperty(value = "'客户证件号'")
        private String certificateNo;
    }
}
